
#ifndef _SPI_H_
#define _SPI_H_
#include "stdint.h"


void spiInit(void);

uint8_t spiRW(uint8_t sendata);



void xn297lWriteReg(uint8_t reg, uint8_t wdata);
uint8_t xn297lReadReg(uint8_t reg);
void xn297lWriteBuf(uint8_t reg, uint8_t *pBuf, uint8_t length);
void xn297lReadBuf(uint8_t reg, uint8_t *pBuf, uint8_t length);














#endif
